package com.lxh.student.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author LXh
 * @since 2022-10-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rc_student")
public class RcStudent implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "student_id", type = IdType.AUTO)
    private Integer studentId;

    private Integer studentClassId;

    private String studentNumber;

    private String studentName;

    private String studentPassword;

    private String studentEmail;

    private Date studentBirthday;

    private Integer studentSex;

    private LocalDateTime studentLastLoginTime;


    public RcStudent(Integer studentId, LocalDateTime studentLastLoginTime) {
        this.studentId = studentId;
        this.studentLastLoginTime = studentLastLoginTime;
    }

    public RcStudent(Integer studentId, String studentPassword, String studentEmail, Date studentBirthday) {
        this.studentId = studentId;
        this.studentPassword = studentPassword;
        this.studentEmail = studentEmail;
        this.studentBirthday = studentBirthday;
    }


}
